#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	int N;
	cin >> N;
	if(N == 0){
		cout << 1 <<endl;
	}else{
		cout << (int)log10(N) + 1 << endl;			//force type converting.
	}
	return 0;
}